package web.sanpham;

public class sanpham {
	private String masp;
	private String tensp;
	private String nhasx;
	private String thoihanbaohanh;
	private String thongtinsp;
	private String chatlieu;
	private String chieucao;

	public sanpham(String masp, String tensp, String nhasx,
			String thoihanbaohanh, String thongtinsp, String chatlieu,
			String chieucao) {
		this.masp = masp;
		this.tensp = tensp;
		this.nhasx = nhasx;
		this.thoihanbaohanh = thoihanbaohanh;
		this.thongtinsp = thongtinsp;
		this.chatlieu = chatlieu;
		this.chieucao = chieucao;
	}
	public sanpham (){
		
	}
	//khoi tao get set
	public String getMasp() {
		return masp;
	}
	public void setMasp(String masp) {
		this.masp = masp;
	}
	public String getTensp() {
		return tensp;
	}
	public void setTensp(String tensp) {
		this.tensp = tensp;
	}
	public String getNhasx() {
		return nhasx;
	}
	public void setNhasx(String nhasx) {
		this.nhasx = nhasx;
	}
	public String getThoihanbaohanh() {
		return thoihanbaohanh;
	}
	public void setThoihanbaohanh(String thoihanbaohanh) {
		this.thoihanbaohanh = thoihanbaohanh;
	}
	public String getThongtinsp() {
		return thongtinsp;
	}
	public void setThongtinsp(String thongtinsp) {
		this.thongtinsp = thongtinsp;
	}
	public String getChatlieu() {
		return chatlieu;
	}
	public void setChatlieu(String chatlieu) {
		this.chatlieu = chatlieu;
	}
	public String getChieucao() {
		return chieucao;
	}
	public void setChieucao(String chieucao) {
		this.chieucao = chieucao;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((masp == null) ? 0 : masp.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		sanpham other = (sanpham) obj;
		if (masp == null) {
			if (other.masp != null)
				return false;
		} else if (!masp.equals(other.masp))
			return false;
		return true;
	}
	
}
